From 7f37aac396c0e045ddb9b2ac6c1bc8c0cd0e25e8 Mon Sep 17 00:00:00 2001 From: Anton Gladky Date: Tue, 10 Mar 2026 06:04:57 +0100 Subject: [PATCH] Add versioned libboost-dev dependency. (Closes: #1129768, #1129770, #1129773) Record the exact Boost version used at build time to ensure compatibility and trigger rebuilds on upgrades. --- debian/control | 2 ++ debian/rules | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/debian/control b/debian/control index ed3cc6b77..f4ef2c119 100644 --- a/debian/control +++ b/debian/control @@ -16,6 +16,7 @@ Build-Depends: dpkg-dev (>= 1.22.5), dh-sequence-javahelper, libalglib-dev, javahelper, + libboost-dev, libadios2-mpi-c++-dev [amd64 arm64 loong64 mips64el ppc64el riscv64 s390x alpha hurd-amd64 ppc64 sparc64], libavcodec-dev, libavformat-dev, @@ -86,6 +87,7 @@ Depends: ${misc:Depends}, ${shlibs:Depends}, default-jdk [!hppa !hurd-any], default-libmysqlclient-dev, + libboost-dev (= ${boost:Version}), libavcodec-dev, libavformat-dev, libavutil-dev, diff --git a/debian/rules b/debian/rules index 7eff996d6..e3e1ba08e 100755 --- a/debian/rules +++ b/debian/rules @@ -169,6 +169,11 @@ execute_after_dh_installdocs-indep: find $(CURDIR)/debian/vtk9-doc/ -type f -print0 | xargs -0 sed -i 's/https:\/\/raw\.githubusercontent\.com//g' find $(CURDIR)/debian/vtk9-doc/ -type f -print0 | xargs -0 sed -i 's/https:\/\/cdn\.jsdelivr\.net\/npm\/mathjax@2/\/usr\/share\/javascript\/mathjax/g' +# Record the exact Boost version used at build time so that libvtk9-dev +# pulls in the same version and triggers a rebuild when Boost is upgraded. +execute_before_dh_gencontrol: + echo "boost:Version=$$(dpkg-query -W -f='$${Version}' libboost-dev)" >> debian/libvtk9-dev.substvars + ifeq ($(DEB_HOST_ARCH),sh4) override_dh_dwz: dh_dwz -X libvtkCommonCore -- 2.30.2